﻿import { axios } from '@/utils/request'

/**
 * 查询Workload
 *
 * @author Bettyzhao
 */
export function IssueWorkloadPage (parameter) {
  return axios({
    url: '/IssueWorkload/page',
    method: 'get',
    params: parameter
  })
}

/**
 * Workload列表
 *
 * @author Bettyzhao
 */
export function IssueWorkloadList (parameter) {
  return axios({
    url: '/IssueWorkload/list',
    method: 'get',
    params: parameter
  })
}

/**
 * 添加Workload
 *
 * @author Bettyzhao
 */
export function IssueWorkloadAdd (parameter) {
  return axios({
    url: '/IssueWorkload/add',
    method: 'post',
    data: parameter
  })
}

/**
 * 编辑Workload
 *
 * @author Bettyzhao
 */
export function IssueWorkloadEdit (parameter) {
  return axios({
    url: '/IssueWorkload/edit',
    method: 'post',
    data: parameter
  })
}

/**
 * 删除Workload
 *
 * @author Bettyzhao
 */
export function IssueWorkloadDelete (parameter) {
  return axios({
    url: '/IssueWorkload/delete',
    method: 'post',
    data: parameter
  })
}

/**
* 获取Project列表
* @author Bettyzhao
*/
export function IssueWorkloadFkProjectList() {
  return axios({
    url: '/IssueWorkload/fkProject',
    method: 'get'
  })
}

/**
* 获取Issue列表
* @author Bettyzhao
*/
export function IssueWorkloadFkIssueList() {
  return axios({
    url: '/IssueWorkload/fkIssue',
    method: 'get'
  })
}
